ApplicationDataContainer roamingSettings = ApplicationData.Current.RoamingSettings; roamingSettings.Values["lastViewed"] = DateTime.Now; var lastViewed = (DateTime)roamingSettings.Values["lastViewed"];